using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmDcCommitteeCommand")]
    public class DcCommitteeCommand
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ComCmdId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public int ComCmdId { get; set; }

		[ForeignKey("Cmd")]
		[DataMember, Display(Name = "CmdId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> CmdId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("ComPos")]
		[DataMember, Display(Name = "ComPosId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> ComPosId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[ForeignKey("Pos")]
		[DataMember, Display(Name = "PosId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> PosId { get; set; }

		[ForeignKey("Class")]
		[DataMember, Display(Name = "ClassId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> ClassId { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.DcCommitteeCommandsResource))]
        public Nullable<int> JobSiteId { get; set; }

		public virtual PsCommand Cmd { get; set; }

		public virtual Employee Emp { get; set; }

		public virtual HRM.DcCommitteePosition ComPos { get; set; }

		public virtual HRM.Position Pos { get; set; }

		public virtual HRM.MpClass Class { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

    }
}